import Prvious from './Carousel/Prvious.vue'
import Next from './Carousel/Next.vue'
import Crousel from './Carousel'
import Pointer from './Carousel/Pointer.vue'
import CardItem from './Carousel/CardItem.vue'
import MyTreeMenu from './TreeMenu';
import MyMenuItem from './TreeMenu/MenuItem.vue';
import MySubMenu from './TreeMenu/SubMenu.vue';
import reSubMenu from './TreeMenu/reSubMenuItem.vue';

const compArr = [
  Prvious, 
  Next, 
  Crousel, 
  Pointer, 
  CardItem,
  MyTreeMenu,
  MyMenuItem,
  MySubMenu,
  reSubMenu
];

export default {
  install (app) {

    // 全局注册组件
    compArr.map(comp => {
      app.component(comp.name, comp);
    })
  }
}